﻿using Newtonsoft.Json;
using System;
namespace Athena.Serialization.Implementations
{
    public class NewtonsoftJsonSerializer : ISerializer<string>
    {
        public string Serialize(object content)
        {
            return JsonConvert.SerializeObject(content);
        }

        public object Deserialize(string content, Type type)
        {
            return JsonConvert.DeserializeObject(content, type);
        }
    }
}
